package Test;

public class tesr {
    public static void main(String[] args) {
        var name = "zhangsan";
        var age = 10;
    }
    public static void main1(String[] args) {
        String data = "one" ;
        int result = switch (data) {
            case "one" : yield 1;
            case "two": yield 2;
            default : yield -1;
        };
        System.out.println(result) ;
    }
}
